
package com.thxrinfo.operate.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pig4cloud.pig.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 商户表
 *
 * @author ct
 * @date 2023-03-06 15:07:48
 */
@Data
@TableName("t_merchant")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "商户表")
public class Merchant extends BaseEntity {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description ="id")
    private Long id;

    /**
     * 商户名称
     */
    @Schema(description ="商户名称")
    private String name;

    /**
     * 商户地址
     */
    @Schema(description ="商户地址")
    private String address;

    /**
     * 登录账号
     */
    @Schema(description ="登录账号")
    private String loginName;

    /**
     * 登录密码
     */
    @Schema(description ="登录密码")
    private String password;

    /**
     * 所属停车场id
     */
    @Schema(description ="所属停车场id")
    private Long parkingId;

    /**
     * 联系人名称
     */
    @Schema(description ="联系人名称")
    private String contacts;

    /**
     * 联系电话
     */
    @Schema(description ="联系电话")
    private String telephone;

    /**
     * 折扣 85代表8.5折
     */
    @Schema(description ="折扣 85代表8.5折")
    private String discount;

    /**
     * 商家描述
     */
    @Schema(description ="商家描述")
    private String merchantDescribe;

    /**
     * 商家logo
     */
    @Schema(description ="商家logo")
    private String logo;

	@Schema(description = "余额")
	private BigDecimal balance;



}
